-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This commit fixes the white corners of menus under macOS. #503
Conversation
Thanks for the patch. I'm not sure though if drawing extra lines and/or a rectangle is the correct solution in general and particularly in this platform agnostic way because the title say that the issue is macOS specific. However, I can believe that we can accept this anyway. Since I can't test and verify this right now I'm leaving this to others (e.g. @ManoloFLTK ?) to decide. |
I'm not keen to fix a macOS-speciic issue with platform-independent code that will also be activated on non macOS platforms. |
El 23 sep. 2022, a las 09:33, ManoloFLTK ***@***.***> escribió:
I'm not keen to fix a macOS-speciic issue with platform-independent code that will also be activated on non macOS platforms.
Agreed. But the problem is also there on other platforms. You just don’t see it as windows are created blank by default there.
I can add:
#ifdef __APPLE__
#endif
Guards to the code, but I find that uglier.
—
Gonzalo Garramuno
***@***.***
|
@ggarra13 wrote:
I agree that this might be an issue on other platforms as well (pixels that are never drawn). Is it possible to make a short and complete demo program that would show the issue on all platforms, for instance by setting a background color explicitly? One option to do so is using the command line switch Another important point to consider: the proposed patch changes box drawing code which is applied all over the FLTK GUI, not only for menus. Backgrounds can have more than just one color, for instance the tiled stipple pattern of the That all said, IMO the proposed patch is not a proper solution of this issue. A correct patch would draw the extra background pixels only:
Otherwise unwanted artifacts would likely cause another regression. Disclaimer: I didn't test anything, these are just my thoughts while reading about this issue. |
I am closing this pull request as I have a better fix for the menus on macOS. Please refer to the PR menuwindow_macos. |
El 24 sep. 2022, a las 05:26, Albrecht Schlosser ***@***.***> escribió:
Disclaimer: I didn't test anything, these are just my thoughts while reading about this issue.
You guys are right. You forced me to create a better fix. Please see the new PR entitled:
This is a better fix to the white menu corners on macOS. #507.
—
Gonzalo Garramuno
***@***.***
|
MacOS menus would have two pixel white corners that would show up when the background was set to a dark color. This commit fixes that display glitch.